package com.vichat.user.entity;


import javax.persistence.*;

/***************
 *author: autogen
 *version: 2018-09-19 13:16:23.176
 */
@Entity
@Table(name = "user_party",catalog = "userdb")
public class UserParty implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "user_party";

    /**企业编号 */
	public static final String ALIAS_PARTY_ID = "party_id";
    /**公司名称 */
	public static final String ALIAS_PARTY_NAME = "party_name";
    /**企业KEY */
	public static final String ALIAS_PARTY_KEY = "party_key";
    /**数据 0 无效 1 有效 */
	public static final String ALIAS_STATE = "state";
    /**创建时间 */
	public static final String ALIAS_CREATE_TIME = "create_time";
    /**修改时间 */
	public static final String ALIAS_UPDATE_TIME = "update_time";
    /**通话类型  1：可呼可接  2：只可接  3：只可呼 */
	public static final String ALIAS_PHONE_STATE = "phone_state";
	
	

 	@Id
@   GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "party_id", unique = true, nullable = false)
    public java.lang.Long partyId;
  
 	@Column(name = "party_name")
    public java.lang.String partyName;
  
 	@Column(name = "party_key")
    public java.lang.String partyKey;
  
 	@Column(name = "state")
    public java.lang.Long state = 1l;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time")
    public java.util.Date createTime;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "update_time")
    public java.util.Date updateTime;
  
 	@Column(name = "phone_state")
    public java.lang.Long phoneState = 1l;
  





	public java.lang.Long getPartyId() {
		return this.partyId;
	}
	
	public void setPartyId(java.lang.Long value) {
		this.partyId = value;
	}

	public java.lang.String getPartyName() {
		return this.partyName;
	}
	
	public void setPartyName(java.lang.String value) {
		this.partyName = value;
	}

	public java.lang.String getPartyKey() {
		return this.partyKey;
	}
	
	public void setPartyKey(java.lang.String value) {
		this.partyKey = value;
	}

	public java.lang.Long getState() {
		return this.state;
	}
	
	public void setState(java.lang.Long value) {
		this.state = value;
	}

	public java.util.Date getCreateTime() {
		return this.createTime;
	}
	
	public void setCreateTime(java.util.Date value) {
		this.createTime = value;
	}

	public java.util.Date getUpdateTime() {
		return this.updateTime;
	}
	
	public void setUpdateTime(java.util.Date value) {
		this.updateTime = value;
	}

	public java.lang.Long getPhoneState() {
		return this.phoneState;
	}
	
	public void setPhoneState(java.lang.Long value) {
		this.phoneState = value;
	}


	
	public UserParty() {
	}
	
	public UserParty(boolean qryflag) {
	    if(qryflag){
	    		this.partyId = null;
				this.partyName = null;
				this.partyKey = null;
				this.state = null;
				this.createTime = null;
				this.updateTime = null;
				this.phoneState = null;
			    }
	}


	public UserParty(
	    java.lang.Long inPartyId,
	    java.lang.String inPartyName,
	    java.lang.String inPartyKey,
	    java.lang.Long inState,
	    java.util.Date inCreateTime,
	    java.util.Date inUpdateTime,
		java.lang.Long inPhoneState
	 ) {
		super();
				this.partyId = inPartyId;
				this.partyName = inPartyName;
				this.partyKey = inPartyKey;
				this.state = inState;
				this.createTime = inCreateTime;
				this.updateTime = inUpdateTime;
				this.phoneState = inPhoneState;
			}





}

